nice
BIN
mods/amogus_blocks/textures/Bricks_purple.png
Normal file
After Width: | Height: | Size: 314 B |
@ -186,7 +186,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"amogus_blocks:obsusian", "amogus_blocks:obsusian", "amogus_blocks:obsusian"},
|
||||
{"amogus_blocks:obsusian", "amogus_blocks:obsusian", "amogus_blocks:obsusian"},
|
||||
{"", "amogus_blocks:planks", ""},
|
||||
{"amogus_blocks:obsusian", "amogus_blocks:planks", "amogus_blocks:obsusian"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -294,4 +294,32 @@ minetest.register_craft({
|
||||
{"", "amogus_items:iron_ingot", ""},
|
||||
{"", "", ""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amogus_blocks:purple_bricks",
|
||||
recipe = {
|
||||
{"", "amogus_blocks:purpleblock", ""},
|
||||
{"", "amogus_blocks:grey_bricks", ""},
|
||||
{"", "", ""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amogus_items:obsusian_sword",
|
||||
recipe = {
|
||||
{"amogus_blocks:obsusian"},
|
||||
{"amogus_blocks:obsusian"},
|
||||
{"amogus_blocks:planks"},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amogus_items:obsusian_shovel",
|
||||
recipe = {
|
||||
{"amogus_blocks:obsusian"},
|
||||
{"amogus_blocks:planks"},
|
||||
{"amogus_blocks:planks"},
|
||||
}
|
||||
})
|
@ -283,7 +283,7 @@ minetest.register_entity("amogus_entities:sussy_imposter", entity)
|
||||
-- register spawn egg
|
||||
minetest.register_craftitem("amogus_entities:sussy_imposter_spawn_egg", {
|
||||
description = "Sussy Imposter Spawn Egg",
|
||||
inventory_image = "amogus_entities_sussy_imposter_spawn_egg.png",
|
||||
inventory_image = "imposta_egg.png",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
|
178
mods/amogus_entities/entities/villager_amogus.lua
Normal file
@ -0,0 +1,178 @@
|
||||
local textures_b = {
|
||||
"amogus_entity.png",
|
||||
"amogus_entity_b.png",
|
||||
"amogus_entity_g.png",
|
||||
"amogus_entity_br.png"
|
||||
}
|
||||
|
||||
local entity = {
|
||||
physical = true,
|
||||
collisionbox = {-0.5, 0, -0.5, 0.5, 1, 0.5},
|
||||
|
||||
visual = "mesh",
|
||||
visual_size = {x=10, y=10, z=10},
|
||||
|
||||
mesh = "amogus_entity.obj",
|
||||
on_rightclick = function(self, clicker)
|
||||
minetest.chat_send_player(clicker:get_player_name(), "WHY ARE YOU SUCH SUSSY BAKA?")
|
||||
end,
|
||||
|
||||
|
||||
-- physics config -- <--- HERE IS PART FOR YOU "USER" (NERD)
|
||||
gravity = 9.81, -- m/s^2
|
||||
|
||||
walk_acceleration_speed = 0.2, -- self explainatory
|
||||
rotation_acceleration_speed = 3, -- self explainatory
|
||||
|
||||
min_jump_force = 15, -- self explainatory
|
||||
max_jump_force = 25, -- self explainatory
|
||||
|
||||
friction = 0.6, -- friction (0.0 - no friction like perfectly smooth ice | 1.0 - full friction and can't even move)
|
||||
rotation_friction = 0.75, -- the same but for rotation
|
||||
bounciness = 0.8, -- bounciness (0.0 - no bounce at all | 1.0 - full bounce and bouces infinitely back to the same height)
|
||||
--------------------
|
||||
|
||||
is_going_forward = true,
|
||||
block_lastly_in_front = false,
|
||||
rotation_velocity = 0,
|
||||
rotation_direction = nil,
|
||||
last_y_velocity = 0,
|
||||
|
||||
|
||||
on_activate = function(self, staticdata)
|
||||
local texture = textures_b[math.random(#textures_b)]
|
||||
self.object:set_properties({textures = {texture}})
|
||||
|
||||
self.object:set_yaw(math.random() * 2 * math.pi)
|
||||
self.rotation_direction = math.random(-1, 1)
|
||||
self.min_max_jump_force_diff = self.max_jump_force - self.min_jump_force
|
||||
end,
|
||||
|
||||
-- on rightclick open formspec
|
||||
on_rightclick = function(self, clicker)
|
||||
minetest.show_formspec(clicker:get_player_name(), "amogus_entities:amogus", "size[8,8]label[0,0;Hello, I'm Amogus]")
|
||||
end,
|
||||
|
||||
|
||||
on_step = function(self, dtime)
|
||||
|
||||
-- play amogus sound randomly
|
||||
if math.random(400) == 1 then
|
||||
--minetest.sound_play("amogus_sound", {
|
||||
-- pos = self.object:get_pos(),
|
||||
-- gain = 1.0,
|
||||
-- max_hear_distance = 50
|
||||
--})
|
||||
|
||||
amogus_general.play_random_sound(
|
||||
"amogus_sound",
|
||||
self.object:get_pos(),
|
||||
1.0, -- gain
|
||||
40, -- max_hear_distance
|
||||
1.0 -- pitch
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
-- random changing between walking and standing still
|
||||
if math.random(200) == 1 then
|
||||
self.is_going_forward = not self.is_going_forward
|
||||
end
|
||||
|
||||
-- perform calculations on direction
|
||||
local dir = self.object:get_yaw()
|
||||
local dir_cos = math.cos(dir)
|
||||
local dir_sin = math.sin(dir)
|
||||
|
||||
-- Go forward if "is_going_forward" is true
|
||||
if self.is_going_forward then
|
||||
--local pos = self.object:get_pos()
|
||||
local vel = self.object:get_velocity()
|
||||
vel.x = vel.x + dir_cos * self.walk_acceleration_speed
|
||||
vel.z = vel.z + dir_sin * self.walk_acceleration_speed
|
||||
self.object:set_velocity(vel)
|
||||
end
|
||||
|
||||
|
||||
-- some chance of chaning rotation_direction to random value
|
||||
if math.random(10) == 1 then
|
||||
--self.rotation_direction = math.random(-1, 1)
|
||||
local rand = math.random()
|
||||
|
||||
if rand < 0.2 then
|
||||
self.rotation_direction = 1
|
||||
elseif rand < 0.4 then
|
||||
self.rotation_direction = -1
|
||||
else
|
||||
self.rotation_direction = 0
|
||||
end
|
||||
end
|
||||
|
||||
-- update rotation_velocity
|
||||
self.rotation_velocity = self.rotation_velocity + self.rotation_direction * self.rotation_acceleration_speed * dtime
|
||||
|
||||
-- update rotation
|
||||
self.object:set_yaw(self.object:get_yaw() + self.rotation_velocity * dtime)
|
||||
|
||||
-- apply rotation_friction
|
||||
self.rotation_velocity = self.rotation_velocity * (1 - self.rotation_friction * dtime)
|
||||
|
||||
|
||||
-- Make it also jump when some block is in front of it
|
||||
local pos = self.object:get_pos()
|
||||
|
||||
pos.x = pos.x + dir_cos
|
||||
pos.z = pos.z + dir_sin
|
||||
|
||||
local bnode = minetest.get_node(pos)
|
||||
--if bnode.name == "air" or bnode.name == "amogus_blocks:water_source" or bnode.name == "amogus_blocks:water_flowing" then
|
||||
-- if node is not solid OR is a liquid
|
||||
if minetest.registered_nodes[bnode.name].walkable == false or minetest.registered_nodes[bnode.name].liquidtype ~= "none" then
|
||||
self.block_lastly_in_front = false
|
||||
-- if node next to the entity is a solid block
|
||||
else
|
||||
if self.block_lastly_in_front == false then
|
||||
self.block_lastly_in_front = true
|
||||
local vel = self.object:get_velocity()
|
||||
vel.y = vel.y + (math.random() * self.min_max_jump_force_diff + self.min_jump_force)
|
||||
self.object:set_velocity(vel)
|
||||
-- randomly jump in the next iteration even if theres still a block in front
|
||||
elseif math.random(10) == 1 then
|
||||
self.block_lastly_in_front = false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
local vel = self.object:get_velocity()
|
||||
|
||||
-- apply bounciness if last_y_velocity was negative and now is 0
|
||||
if self.last_y_velocity < 0 and vel.y == 0 then
|
||||
vel.y = vel.y - self.last_y_velocity * self.bounciness
|
||||
end
|
||||
|
||||
-- change velocity by gravity
|
||||
vel.y = vel.y - self.gravity * dtime * 2
|
||||
|
||||
-- change velocity by friction
|
||||
vel.x = vel.x * (1 - self.friction * dtime)
|
||||
vel.z = vel.z * (1 - self.friction * dtime)
|
||||
|
||||
self.object:set_velocity(vel)
|
||||
|
||||
self.last_y_velocity = vel.y
|
||||
end
|
||||
}
|
||||
|
||||
minetest.register_entity("amogus_entities:amogus_villager", entity)
|
||||
|
||||
-- create an item for spawning the entity
|
||||
minetest.register_craftitem("amogus_entities:amogus_villager_item", {
|
||||
description = "Amogus Villager",
|
||||
inventory_image = "amogus_villager_item.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local pos = user:get_pos()
|
||||
pos.y = pos.y + 1.5
|
||||
minetest.add_entity(pos, "amogus_entities:amogus_villager")
|
||||
end
|
||||
})
|
@ -1,4 +1,5 @@
|
||||
-- Load the entity's lua file
|
||||
dofile(minetest.get_modpath("amogus_entities") .. "/entities/amogus_entity.lua")
|
||||
dofile(minetest.get_modpath("amogus_entities") .. "/entities/mini_crewmate_entity.lua")
|
||||
dofile(minetest.get_modpath("amogus_entities") .. "/entities/sussy_imposter_entity.lua")
|
||||
dofile(minetest.get_modpath("amogus_entities") .. "/entities/sussy_imposter_entity.lua")
|
||||
dofile(minetest.get_modpath("amogus_entities") .. "/entities/villager_amogus.lua")
|
BIN
mods/amogus_entities/textures/imposta_egg.png
Normal file
After Width: | Height: | Size: 182 B |
@ -3,7 +3,7 @@ minetest.register_on_joinplayer(function(player)
|
||||
--player:set_sky({r=0, g=0, b=0}, "plain", {})
|
||||
|
||||
-- play music in loop without position
|
||||
if false then
|
||||
if true then
|
||||
minetest.sound_play("amogus_incomming", {
|
||||
to_player = player:get_player_name(),
|
||||
loop = true,
|
||||
@ -11,7 +11,14 @@ minetest.register_on_joinplayer(function(player)
|
||||
})
|
||||
end
|
||||
end)
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
|
||||
|
||||
player:set_lighting({
|
||||
shadows = {intensity = 0.5}
|
||||
})
|
||||
|
||||
end)
|
||||
amogus_general = { }
|
||||
|
||||
---- SOUNDS CONFIGURATION ----
|
||||
|
@ -480,7 +480,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
-- break
|
||||
--end
|
||||
--if is_new_chunk then
|
||||
for i = 1, math.random(10, 15) do
|
||||
for i = 1, math.random(10, 25) do
|
||||
minetest.add_entity({x = minp.x + math.random(16), y = minp.y + 1, z = minp.z + math.random(16)}, "amogus_entities:amogus")
|
||||
--minetest.sound_play("amogus_sound", { pos = pos,gain = 1.0,max_hear_distance = 5})
|
||||
end
|
||||
@ -541,7 +541,7 @@ minetest.register_abm({
|
||||
nodenames = {"air"},
|
||||
neighbors = {"group:stone"},
|
||||
interval = 30,
|
||||
chance = 100,
|
||||
chance = 60,
|
||||
action = function(pos)
|
||||
-- avoid spawning inside liquids
|
||||
if minetest.registered_nodes[minetest.get_node(pos).name].liquidtype == "none" then
|
||||
|
@ -1,6 +1,6 @@
|
||||
minetest.register_item(":", { -- Hand
|
||||
type = "none",
|
||||
wield_image = "coke.png",
|
||||
wield_image = "CRT.png",
|
||||
wield_scale = {x=.3,y=2,z=2.5},
|
||||
range = 5,
|
||||
tool_capabilities = {
|
||||
@ -153,12 +153,6 @@ minetest.register_tool("amogus_items:lightsaber_green", {
|
||||
},
|
||||
sound = {breaks = "amogus_sound"},
|
||||
})
|
||||
|
||||
-- add theese items : goldenpickaxe, wooden plank, gold_ingot, sussium_ingot
|
||||
--minetest.register_craftitem("amogus_items:wooden_plank", {
|
||||
--description = "Wooden Plank",
|
||||
-- inventory_image = "wooden_plank.png",
|
||||
--})
|
||||
minetest.register_craftitem("amogus_items:gold_ingot", {
|
||||
description = "Gold Ingot",
|
||||
inventory_image = "gold_ingot.png",
|
||||
@ -186,7 +180,7 @@ minetest.register_tool("amogus_items:goldenplumba", {
|
||||
crumbly = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
cracky = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy = 10},
|
||||
damage_groups = {fleshy = 2},
|
||||
},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if pointed_thing.type == "node" then
|
||||
@ -213,7 +207,7 @@ minetest.register_tool("amogus_items:susplumba", {
|
||||
crumbly = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
cracky = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy = 10},
|
||||
damage_groups = {fleshy = 2},
|
||||
},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if pointed_thing.type == "node" then
|
||||
@ -677,4 +671,31 @@ bucket.register_liquid(
|
||||
{tool = 1, water_bucket = 1}
|
||||
)
|
||||
|
||||
-- end of modifed code from bucket mod from minetest_game
|
||||
minetest.register_tool("amogus_items:obsusian_shovel", {
|
||||
description = "Obsidian Shovel",
|
||||
inventory_image = "obsusian_shovel.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
crumbly = {times = {[1] = 0.80, [2] = 0.40, [3] = 0.20}, uses = 30, maxlevel = 3},
|
||||
},
|
||||
damage_groups = {fleshy = 1.6},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_tool("amogus_items:obsusian_sword", {
|
||||
description = "Obsidian Sword",
|
||||
inventory_image = "obsusian_sword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
snappy = {times = {[2] = 0.70, [3] = 0.30}, uses = 30, maxlevel = 3},
|
||||
},
|
||||
damage_groups = {fleshy = 3.8},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
BIN
mods/amogus_items/textures/amogus_food.png
Normal file
After Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 273 B |
BIN
mods/amogus_items/textures/obsusian_pick.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
mods/amogus_items/textures/obsusian_shovel.png
Normal file
After Width: | Height: | Size: 272 B |
BIN
mods/amogus_items/textures/obsusian_sword.png
Normal file
After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 273 B |
@ -22,7 +22,7 @@ player_api.register_model("amogus_entity.obj", {
|
||||
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
|
||||
|
||||
visual = "mesh",
|
||||
visual_size = {x=15, y=15, z=15},
|
||||
visual_size = {x=8, y=8, z=8},
|
||||
|
||||
})
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
Wuzzy <Wuzzy@disroot.org> <Wuzzy2@mail.ru>
|
||||
Wuzzy <Wuzzy@disroot.org> <almikes@aol.com>
|
@ -1,16 +0,0 @@
|
||||
MIT License
|
||||
Copyright (c) 2017-2020 Elijah Duffy and Wuzzy
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
||||
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@ -1,39 +0,0 @@
|
||||
# Schematic Editor [`schemedit`]
|
||||
|
||||
## Version
|
||||
1.7.1
|
||||
|
||||
## Description
|
||||
This is a mod which allows you to edit and export schematics (`.mts` files).
|
||||
|
||||
This mod works in Minetest 5.0.0 or later, but recommended is version 5.1.0
|
||||
or later.
|
||||
|
||||
It supports node probabilities, forced node placement and slice probabilities.
|
||||
|
||||
It adds 3 items:
|
||||
|
||||
* Schematic Creator: Used to mark a region and export or import it as schematic
|
||||
* Schematic Void: Marks a position in a schematic which should not replace anything when placed as a schematic
|
||||
* Schematic Node Probability Tool: Set per-node probabilities and forced node placement
|
||||
|
||||
Note: The import feature requires Minetest 5.1.0 or later.
|
||||
|
||||
It also adds these server commands:
|
||||
|
||||
* `placeschem` to place a schematic
|
||||
* `mts2lua` to convert .mts files to .lua files (Lua code)
|
||||
|
||||
There's also a setting `schemedit_export_lua` to enable automatic export to .lua files.
|
||||
|
||||
## Usage help
|
||||
This mod assumes you already have a basic understanding about how schematics in Minetest work.
|
||||
If not, refer to the Minetest Lua API documentation to understand more about schematics.
|
||||
|
||||
To learn how to use all the items in this mod, read `USAGE.md`.
|
||||
|
||||
You can also find the same help texts in-game if you if you use the optional Help modpack
|
||||
(mods `doc` and `doc_items`).
|
||||
|
||||
## License of everything
|
||||
MIT License
|
@ -1,44 +0,0 @@
|
||||
## Usage help
|
||||
In this section you'll learn how to use the items of this mod.
|
||||
Note: If you have the `doc` and `doc_items` mods installed, you can also access the same help texts in-game (possibly translated).
|
||||
|
||||
### Schematic Creator
|
||||
The schematic creator is used to save a region of the world into a schematic file (.mts).
|
||||
|
||||
#### Usage
|
||||
To get started, place the block facing directly in front of any bottom left corner of the structure you want to save. This block can only be accessed by the placer or by anyone with the “`schematic_override`” privilege.
|
||||
To save a region, use the block, enter the size and a schematic name and hit “Export schematic”. The file will always be saved in the world directory. Note you can use this name in the /placeschem command to place the schematic again.
|
||||
|
||||
Importing a schematic will load a schematic from the world directory, place it in front of the schematic creator and sets probability and force-place data accordingly.
|
||||
The other features of the schematic creator are optional and are used to allow to add randomness and fine-tuning.
|
||||
|
||||
Y slices are used to remove entire slices based on chance. For each slice of the schematic region along the Y axis, you can specify that it occurs only with a certain chance. In the Y slice tab, you have to specify the Y slice height (0 = bottom) and a probability from 0 to 255 (255 is for 100%). By default, all Y slices occur always.
|
||||
|
||||
With a schematic node probability tool, you can set a probability for each node and enable them to overwrite all nodes when placed as schematic. This tool must be used prior to the file export.
|
||||
|
||||
|
||||
### Schematic Node Probability Tool
|
||||
This is an advanced tool which only makes sense when used together with a schematic creator. It is used to finetune the way how nodes from a schematic are placed.
|
||||
It allows you to set two things:
|
||||
1) Set probability: Chance for any particular node to be actually placed (default: always placed)
|
||||
2) Enable force placement: These nodes replace node other than air and ignore when placed in a schematic (default: off)
|
||||
|
||||
#### Usage
|
||||
|
||||
BASIC USAGE:
|
||||
Punch to configure the tool. Select a probability (0-255; 255 is for 100%) and enable or disable force placement. Now place the tool on any node to apply these values to the node. This information is preserved in the node until it is destroyed or changed by the tool again. This tool has no effect on schematic voids.
|
||||
Now you can use a schematic creator to save a region as usual, the nodes will now be saved with the special node settings applied.
|
||||
|
||||
NODE HUD:
|
||||
To help you remember the node values, the nodes with special values are labelled in the HUD. The first line shows probability and force placement (with “[F]”). The second line is the current distance to the node. Nodes with default settings and schematic voids are not labelled.
|
||||
To disable the node HUD, unselect the tool or hit “place” while not pointing anything.
|
||||
|
||||
UPDATING THE NODE HUD:
|
||||
The node HUD is not updated automatically and may be outdated. The node HUD only updates the HUD for nodes close to you whenever you place the tool or press the punch and sneak keys simultaneously. If you sneak-punch a schematic creator, then the node HUD is updated for all nodes within the schematic creator's region, even if this region is very big.
|
||||
|
||||
|
||||
### Schematic Void
|
||||
This is an utility block used in the creation of schematic files. It should be used together with a schematic creator. When saving a schematic, all nodes with a schematic void will be left unchanged when the schematic is placed again. Technically, this is equivalent to a block with the node probability set to 0.
|
||||
|
||||
#### Usage
|
||||
Just place the schematic void like any other block and use the schematic creator to save a portion of the world.
|
@ -1,85 +0,0 @@
|
||||
# textdomain: schemedit
|
||||
<world path>=<Weltpfad>
|
||||
Insufficient privileges! You need the “@1” privilege to use this.=Unzureichende Privilegien! Sie benötigen das „@1“-Privileg, um dies benutzen zu können.
|
||||
Exported schematic to @1=Schematic nach @1 exportiert
|
||||
Failed to export schematic to @1=Schematic konnte nicht nach @1 exportiert werden
|
||||
Probability: @1=Wahrscheinlichkeit: @1
|
||||
Not Set=Nicht gesetzt
|
||||
Force placement=Platzierung erzwingen
|
||||
Import schematic=Schematic importieren
|
||||
Main=Grundeinstellungen
|
||||
Hide border=Rand verbergen
|
||||
Show border=Rand anzeigen
|
||||
Position: @1=Position: @1
|
||||
Owner: @1=Eigentümer: @1
|
||||
Schematic name: @1=Schematic-Name: @1
|
||||
Size: @1=Größe: @1
|
||||
Schematic name:=Schematic-Name:
|
||||
OK=OK
|
||||
Save schematic name=Schematic-Name speichern
|
||||
Export schematic=Schematic exportieren
|
||||
Export/import path:@n@1=Export-/Importpfad:@n@1
|
||||
<name>=<Name>
|
||||
Air to voids=Luft zu Lücken
|
||||
Voids to air=Lücken zu Luft
|
||||
Turn all air nodes into schematic void nodes=Alle Luft-Nodes zu Schematic-Lücken umwandeln
|
||||
Turn all schematic void nodes into air nodes=Alle Schematic-Lücken zu Luft-Nodes umwandeln
|
||||
X size:=X-Größe:
|
||||
Y size:=Y-Größe:
|
||||
Z size:=Z-Größe:
|
||||
Save size=Größe speichern
|
||||
Help=Hilfe
|
||||
Could not emerge area from @1 to @2: Emerging was cancelled. Nothing was exported.=Gebiet von @1 zu @2 konnte nicht emergt werden: Emergen wurde abgebrochen. Nichts wurde exportiert.
|
||||
Could not emerge area from @1 to @2: Error while emerging. Nothing was exported.=Gebiet von @1 zu @2 konnte nicht emergt werden: Fehler beim Emergen. Nichts wurde exportiert.
|
||||
Could not emerge area from @1 to @2: Unknown action in emerge callback. Nothing was exported.=Gebiet von @1 zu @2 konnte nicht emergt werden: Unbekannte Aktion im Emerge-Callback. Nichts wurde exportiert.
|
||||
Imported schematic from @1=Schematic von @1 importiert
|
||||
Failed to import schematic from @1=Schematic konnte nicht von @1 importiert werden
|
||||
Y Slices=Y-Scheiben
|
||||
Y @= @1; Probability @= @2=Y @= @1; Wahrscheinlichkeit @= @2
|
||||
Add=Hinzufügen
|
||||
Apply=Anwenden
|
||||
Y position (max. @1):=Y-Position (max. @1):
|
||||
Probability (0-255):=Wahrscheinlichkeit (0-255):
|
||||
Cancel=Abbrechen
|
||||
Add slice=Neue Scheibe
|
||||
Remove slice=Scheibe entfernen
|
||||
Edit slice=Scheibe anpassen
|
||||
Back=Zurück
|
||||
Schematic Node Probability Tool=Schematic-Node-Wahrscheinlichkeitswerkzeug
|
||||
Probability (0-255)=Wahrscheinlichkeit (0-255)
|
||||
Probability that the node will be placed=Wahrscheinlichkeit, dass der Node platizert wird
|
||||
If enabled, the node will replace nodes other than air and ignore=Wenn aktiviert, wird der Node alle Nodes außer Luft und Ignorieren ersetzen
|
||||
Allows you to access schemedit nodes not owned by you=Damit können Sie auf Schemedit-Nodes, die ihnen nicht gehören, zugreifen
|
||||
Importing a schematic will load a schematic from the world directory, place it in front of the schematic creator and sets probability and force-place data accordingly.=Das Importieren eines Schematics wird eine Schematicdatei aus dem Weltverzeichnis laden, sie vor dem Schematic-Macher platzieren und die Wahrscheinlichkeits- und Zwangsplatzierungsdaten entsprechend setzen.
|
||||
Schematic Creator=Schematic-Macher
|
||||
The schematic creator is used to save a region of the world into a schematic file (.mts).=Der Schematic-Macher wird benutzt, um eine Region der Welt in eine Schematic-Datei (.mts) zu speichern.
|
||||
To get started, place the block facing directly in front of any bottom left corner of the structure you want to save. This block can only be accessed by the placer or by anyone with the “schematic_override” privilege.=Um anzufangen, platzieren Sie den Block direkt vor einer beliebigen unteren linken Ecke des Gebäudes, das Sie speichern möchten. Dieser Block kann nur vom Platzierer oder von Spielern mit dem „schematic_override“-Privileg benutzt werden.
|
||||
To save a region, use the block, enter the size and a schematic name and hit “Export schematic”. The file will always be saved in the world directory. Note you can use this name in the /placeschem command to place the schematic again.=Um eine Region zu speichern, benutzen Sie den Block, geben Sie die Größe und einen Schematic-Namen ein und klicken Sie auf „Schematic exportieren“. Die Datei wird immer im Weltverzeichnis gespeichert. Beachten Sie, dass Sie diesen Namen im „/placeschem“-Befehl benutzen können, um das Schematic erneut zu platzieren.
|
||||
The other features of the schematic creator are optional and are used to allow to add randomness and fine-tuning.=Die anderen Funktionen des Schematic-Machers sind optional und werden für Zufälligkeit und Feinjustierungen benutzt.
|
||||
Y slices are used to remove entire slices based on chance. For each slice of the schematic region along the Y axis, you can specify that it occurs only with a certain chance. In the Y slice tab, you have to specify the Y slice height (0 @= bottom) and a probability from 0 to 255 (255 is for 100%). By default, all Y slices occur always.=Y-Scheiben werden benutzt, um ganze Scheiben mit einer gewissen Wahrscheinlichkeit auszulassen. Für jede Scheibe der Schematic-Region entlang der Y-Achse können Sie festlegen, dass sie nur mit einer gewissen Wahrscheinlichkeit auftritt. In der Registerkarte „Y-Scheiben“ müssen Sie die Höhe der Y-Scheibe festlegen (0 @= Boden) sowie eine Wahrscheinlichkeit zwischen 0 und 255 (255 steht für 100%). Standardmäßig treten alle Y-Scheiben immer auf.
|
||||
With a schematic node probability tool, you can set a probability for each node and enable them to overwrite all nodes when placed as schematic. This tool must be used prior to the file export.=Mit einem Schematic-Node-Wahrscheinlichkeitswerkzeug können Sie die Wahrscheinlichkeit für jeden Node setzen und sie dazu aktivieren, alle Nodes zu ersetzen, wenn sie als Schematic platziert werden. Dieses Werkzeug muss vor dem Dateiexport benutzt werden.
|
||||
(owned by @1)=(Eigentümer: @1)
|
||||
This is an advanced tool which only makes sense when used together with a schematic creator. It is used to finetune the way how nodes from a schematic are placed.=Dies ist ein fortgeschrittenes Werkzeug, der nur sinnvoll in Verwendung mit einem Schematic-Macher benutzt werden kann. Er wird benutzt, um die Art und Weise, wie Nodes aus einem Schematic platziert werden, feinzujustieren.
|
||||
It allows you to set two things:=Damit können Sie zwei Dinge setzen:
|
||||
1) Set probability: Chance for any particular node to be actually placed (default: always placed)=1) Wahrscheinlichkeit setzen: Wahrscheinlichkeit für einen bestimmten Node, dass er tatsächlich platziert wird (Standard: immer platziert)
|
||||
2) Enable force placement: These nodes replace node other than air and ignore when placed in a schematic (default: off)=2) Zwangsplatzierung aktivieren: Diese Nodes ersetzen alle Nodes außer Luft und Ignorieren, wenn Sie in einem Schematic platziert werden (Standard: aus)
|
||||
BASIC USAGE:=GRUNDLEGENDE BENUTZUNG:
|
||||
Punch to configure the tool. Select a probability (0-255; 255 is for 100%) and enable or disable force placement. Now place the tool on any node to apply these values to the node. This information is preserved in the node until it is destroyed or changed by the tool again. This tool has no effect on schematic voids.=Schlagen Sie zu, um das Werkzeug zu konfigurieren. Wählen Sie eine Wahrscheinlichkeit (0-255; 255 steht für 100%) und aktivieren oder deaktivieren Sie die erzwungene Platzierung. Platzieren Sie nun das Werkzeug auf einen beliebigen Node, um diese Werte auf dem Node anzuwenden. Diese Information bleibt im Node erhalten, bis er zerstört oder erneut vom Werkzeug geändert wird. Dieses Werkzeug hat keine Auswirkung auf Schematic-Lücken.
|
||||
Now you can use a schematic creator to save a region as usual, the nodes will now be saved with the special node settings applied.=Anschließend können Sie einen Schematic-Macher benutzen, um eine Region wie gewöhnlich zu speichern, die Nodes werden nun mit den besonderen Node-Einstellungen gespeichert.
|
||||
NODE HUD:=NODE-HUD:
|
||||
To help you remember the node values, the nodes with special values are labelled in the HUD. The first line shows probability and force placement (with “[F]”). The second line is the current distance to the node. Nodes with default settings and schematic voids are not labelled.=Um Ihnen dabei zu helfen, sich die Node-Werte zu merken, werden die Nodes mit besonderen Werten in der Benutzeroberfläche gekennzeichnet. Die erste Zeile zeigt die Wahrscheinlichkeit und die Zwangsplatzierung (mit „[F]“) an. Die zweite Zeile zeigt die momentane Entfernung zum Node an. Nodes mit den Standardeinstellungen und Schematic-Lücken werden nicht gekennzeichnet.
|
||||
To disable the node HUD, unselect the tool or hit “place” while not pointing anything.=Um die Node-HUD zu deaktivieren, wählen Sie das Werkzeug ab oder drücken Sie die Platzierentaste, während Sie auf nichts zeigen.
|
||||
UPDATING THE NODE HUD:=NODE-HUD AKTUALISIEREN:
|
||||
The node HUD is not updated automatically and may be outdated. The node HUD only updates the HUD for nodes close to you whenever you place the tool or press the punch and sneak keys simultaneously. If you sneak-punch a schematic creator, then the node HUD is updated for all nodes within the schematic creator's region, even if this region is very big.=Die Node-HUD wird nicht automatisch aktualisiert und kann veraltet sein. Die Node-HUD wird nur die HUD für Nodes in Ihrer Nähe aktualisieren oder wenn Sie das Werkzeug benutzen oder gleichzeitig die Schlag- und Schleichtaste drücken. Wenn Sie auf einen Schematic-Macher schleichschlagen, wird die Node-HUD für alle Nodes innerhalb der Region des Schematic-Machers aktualisiert, selbst, wenn diese Region sehr groß ist.
|
||||
Schematic Void=Schematic-Lücke
|
||||
This is an utility block used in the creation of schematic files. It should be used together with a schematic creator. When saving a schematic, all nodes with a schematic void will be left unchanged when the schematic is placed again. Technically, this is equivalent to a block with the node probability set to 0.=Dies ist ein Hilfsblock, der bei der Erstellung von Schematic-Dateien benutzt wird. Er sollte zusammen mit einem Schematic-Macher benutzt werden. Wenn ein Schematic gespeichert wird, werden alle Nodes mit einer Schematic-Lücke unverändert gelassen, wenn das Schematic erneut platziert wird. Technisch gesehen ist dieses Verhalten identisch mit einem Block, der eine Node-Wahrscheinlichkeit von 0 hat.
|
||||
Just place the schematic void like any other block and use the schematic creator to save a portion of the world.=Platzieren Sie einfach die Schematic-Lücke wie jeden anderen Block und benutzen Sie den Schematic-Macher, um einen Teil der Welt zu speichern.
|
||||
Place schematic at the position specified or the current player position (loaded from @1). “-c” will clear the area first=Schematic an der angegebenen Position oder der aktuellen Spielerposition platzieren (geladen von @1). Mit „-c“ wird das Gebiet zuerst geleert
|
||||
<schematic name>[.mts] [-c] [<x> <y> <z>]=<Schematic-Name>[.mts] [-c] [<x> <y> <z>]
|
||||
No schematic file specified.=Keinen Schematic-Namen angegeben.
|
||||
Schematic file could not be loaded!=Schematic-Datei konnte nicht geladen werden!
|
||||
List schematic files in world path=Schematic-Dateien im Weltpfad auflisten
|
||||
No schematic files.=Keine Schematic-Dateien.
|
||||
Convert .mts schematic file to .lua file (loaded from @1)=„.mts“-Schematicdatei zu „.lua“-Datei konvertieren (geladen von @1)
|
||||
<schematic name>[.mts] [comments]=<Schematic-Name>[.mts] [comments]
|
||||
Failed!=Fehlgeschlagen!
|
@ -1,85 +0,0 @@
|
||||
# textdomain: schemedit
|
||||
<world path>=
|
||||
Insufficient privileges! You need the “@1” privilege to use this.=
|
||||
Exported schematic to @1=
|
||||
Failed to export schematic to @1=
|
||||
Probability: @1=
|
||||
Not Set=
|
||||
Force placement=
|
||||
Import schematic=
|
||||
Main=
|
||||
Hide border=
|
||||
Show border=
|
||||
Position: @1=
|
||||
Owner: @1=
|
||||
Schematic name: @1=
|
||||
Size: @1=
|
||||
Schematic name:=
|
||||
OK=
|
||||
Save schematic name=
|
||||
Export schematic=
|
||||
Export/import path:@n@1=
|
||||
<name>=
|
||||
Air to voids=
|
||||
Voids to air=
|
||||
Turn all air nodes into schematic void nodes=
|
||||
Turn all schematic void nodes into air nodes=
|
||||
X size:=
|
||||
Y size:=
|
||||
Z size:=
|
||||
Save size=
|
||||
Help=
|
||||
Could not emerge area from @1 to @2: Emerging was cancelled. Nothing was exported.=
|
||||
Could not emerge area from @1 to @2: Error while emerging. Nothing was exported.=
|
||||
Could not emerge area from @1 to @2: Unknown action in emerge callback. Nothing was exported.=
|
||||
Imported schematic from @1=
|
||||
Failed to import schematic from @1=
|
||||
Y Slices=
|
||||
Y @= @1; Probability @= @2=
|
||||
Add=
|
||||
Apply=
|
||||
Y position (max. @1):=
|
||||
Probability (0-255):=
|
||||
Cancel=
|
||||
Add slice=
|
||||
Remove slice=
|
||||
Edit slice=
|
||||
Back=
|
||||
Schematic Node Probability Tool=
|
||||
Probability (0-255)=
|
||||
Probability that the node will be placed=
|
||||
If enabled, the node will replace nodes other than air and ignore=
|
||||
Allows you to access schemedit nodes not owned by you=
|
||||
Importing a schematic will load a schematic from the world directory, place it in front of the schematic creator and sets probability and force-place data accordingly.=
|
||||
Schematic Creator=
|
||||
The schematic creator is used to save a region of the world into a schematic file (.mts).=
|
||||
To get started, place the block facing directly in front of any bottom left corner of the structure you want to save. This block can only be accessed by the placer or by anyone with the “schematic_override” privilege.=
|
||||
To save a region, use the block, enter the size and a schematic name and hit “Export schematic”. The file will always be saved in the world directory. Note you can use this name in the /placeschem command to place the schematic again.=
|
||||
The other features of the schematic creator are optional and are used to allow to add randomness and fine-tuning.=
|
||||
Y slices are used to remove entire slices based on chance. For each slice of the schematic region along the Y axis, you can specify that it occurs only with a certain chance. In the Y slice tab, you have to specify the Y slice height (0 @= bottom) and a probability from 0 to 255 (255 is for 100%). By default, all Y slices occur always.=
|
||||
With a schematic node probability tool, you can set a probability for each node and enable them to overwrite all nodes when placed as schematic. This tool must be used prior to the file export.=
|
||||
(owned by @1)=
|
||||
This is an advanced tool which only makes sense when used together with a schematic creator. It is used to finetune the way how nodes from a schematic are placed.=
|
||||
It allows you to set two things:=
|
||||
1) Set probability: Chance for any particular node to be actually placed (default: always placed)=
|
||||
2) Enable force placement: These nodes replace node other than air and ignore when placed in a schematic (default: off)=
|
||||
BASIC USAGE:=
|
||||
Punch to configure the tool. Select a probability (0-255; 255 is for 100%) and enable or disable force placement. Now place the tool on any node to apply these values to the node. This information is preserved in the node until it is destroyed or changed by the tool again. This tool has no effect on schematic voids.=
|
||||
Now you can use a schematic creator to save a region as usual, the nodes will now be saved with the special node settings applied.=
|
||||
NODE HUD:=
|
||||
To help you remember the node values, the nodes with special values are labelled in the HUD. The first line shows probability and force placement (with “[F]”). The second line is the current distance to the node. Nodes with default settings and schematic voids are not labelled.=
|
||||
To disable the node HUD, unselect the tool or hit “place” while not pointing anything.=
|
||||
UPDATING THE NODE HUD:=
|
||||
The node HUD is not updated automatically and may be outdated. The node HUD only updates the HUD for nodes close to you whenever you place the tool or press the punch and sneak keys simultaneously. If you sneak-punch a schematic creator, then the node HUD is updated for all nodes within the schematic creator's region, even if this region is very big.=
|
||||
Schematic Void=
|
||||
This is an utility block used in the creation of schematic files. It should be used together with a schematic creator. When saving a schematic, all nodes with a schematic void will be left unchanged when the schematic is placed again. Technically, this is equivalent to a block with the node probability set to 0.=
|
||||
Just place the schematic void like any other block and use the schematic creator to save a portion of the world.=
|
||||
Place schematic at the position specified or the current player position (loaded from @1). “-c” will clear the area first=
|
||||
<schematic name>[.mts] [-c] [<x> <y> <z>]=
|
||||
No schematic file specified.=
|
||||
Schematic file could not be loaded!=
|
||||
List schematic files in world path=
|
||||
No schematic files.=
|
||||
Convert .mts schematic file to .lua file (loaded from @1)=
|
||||
<schematic name>[.mts] [comments]=
|
||||
Failed!=
|
@ -1,69 +0,0 @@
|
||||
-- This file adds a command for generating the schemedit usage help readme
|
||||
-- file, in Markdown format. The text is extracted from the metadata of
|
||||
-- the items. This is only used for development purposes, after the
|
||||
-- help text of any of the items was changed.
|
||||
|
||||
-- How to use: Temporarily set MAKE_README to true in init.lua, then
|
||||
-- start the game as admin and run “/make_schemedit_readme”. Copy the
|
||||
-- generated file back to the mod directory (USAGE.md).
|
||||
|
||||
-- Everything here is intentionally NOT translated because it is for text
|
||||
-- files only.
|
||||
|
||||
|
||||
-- Extract text from item definition
|
||||
local get_text = function(item, field)
|
||||
local text = minetest.registered_items[item][field]
|
||||
|
||||
-- Remove translation escapes
|
||||
text = string.gsub(text, "\x1BE", "")
|
||||
text = string.gsub(text, "\x1B%(T@schemedit%)", "")
|
||||
|
||||
-- Fix Markdown syntax error
|
||||
text = string.gsub(text, "schematic_override", "`schematic_override`")
|
||||
return text
|
||||
end
|
||||
|
||||
|
||||
-- Schemedit items to generate the readme from
|
||||
local items = { "creator", "probtool", "void" }
|
||||
|
||||
minetest.register_chatcommand("make_schemedit_readme", {
|
||||
description = "Generate the schemedit usage help readme file",
|
||||
privs = {server=true},
|
||||
func = function(name, param)
|
||||
|
||||
local readme = "## Usage help".."\n"
|
||||
readme = readme .. "In this section you'll learn how to use the items of this mod.".."\n"
|
||||
readme = readme .. "Note: If you have the `doc` and `doc_items` mods installed, you can also access the same help texts in-game (possibly translated).".."\n\n"
|
||||
|
||||
local entries = {}
|
||||
for i=1, #items do
|
||||
local item = items[i]
|
||||
local desc = get_text("schemedit:"..item, "description")
|
||||
local longdesc = get_text("schemedit:"..item, "_doc_items_longdesc")
|
||||
local usagehelp = get_text("schemedit:"..item, "_doc_items_usagehelp")
|
||||
|
||||
readme = readme .. "### "..desc.."\n"
|
||||
readme = readme .. longdesc .."\n\n"
|
||||
readme = readme .. "#### Usage\n"
|
||||
readme = readme .. usagehelp
|
||||
if i < #items then
|
||||
readme = readme .. "\n\n\n"
|
||||
end
|
||||
end
|
||||
|
||||
local path = minetest.get_worldpath().."/schemedit_readme.md"
|
||||
local file = io.open(path, "w")
|
||||
if not file then
|
||||
return false, "Failed to open file!"
|
||||
end
|
||||
local ok = file:write(readme)
|
||||
file:close()
|
||||
if ok then
|
||||
return true, "File written to: "..path
|
||||
else
|
||||
return false, "Failed to write file!"
|
||||
end
|
||||
end
|
||||
})
|
@ -1,5 +0,0 @@
|
||||
name = schemedit
|
||||
title = Schematic Editor
|
||||
optional_depends = doc
|
||||
description = Advanced tool for modders and advanced users to create and edit schematics.
|
||||
min_minetest_version = 5.0
|
Before Width: | Height: | Size: 48 KiB |
@ -1,8 +0,0 @@
|
||||
# If enabled, exporting a schematic will also create a .lua file
|
||||
# in addition to the .mts file.
|
||||
schemedit_export_lua (.lua file schematic export) bool false
|
||||
|
||||
# Specify the style of the visual border markers.
|
||||
# * edges: Show borders at the edges
|
||||
# * checkers: Checker pattern at the sides
|
||||
schemedit_border_style (Border style) enum edges edges,checkers
|
Before Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 123 B |
Before Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 116 B |