]> git.lizzy.rs Git - Crafter.git/blob - README.md
Heavily optimize network usage
[Crafter.git] / README.md
1 <img src="https://github.com/oilboi/Crafter/blob/master/menu/header.png">
2
3 > Designed for Minetest 5.3.0-DEV
4
5 >Built using textures from <a href="https://forum.minetest.net/viewtopic.php?t=16407">Mineclone 2</a> 
6
7 ---
8
9 ## Be sure to install the clientside mod for this game mode: <a href="https://github.com/oilboi/crafter_client">Download here</a>
10
11
12
13
14 ## If you want to run this on a server you must add this to your server minetest.conf:
15
16 ```
17 enable_client_modding = true
18 csm_restriction_flags = 0
19 enable_mod_channels = true
20 ```
21
22
23
24 ## This game is in early alpha and uses a lot of experimental features in the engine
25
26 ---
27
28 # ALPHA STATE CHANGELOG
29
30 > <a href="https://github.com/oilboi/Crafter/blob/master/old_changelog.md">Old Version Changelogs</a>
31
32 ## Alpha 0.05
33
34 > Multiplayer Polishing Update
35 - Fixed only one player being able to run on a server
36 - Fixed only one person being able to teleport in the same server step
37 - Players now use the same damage mechaninism as mobs
38 - Fixed wrong variable for durability assigned to all swords
39 - Fix bug in experience
40 - Fully implemented bows and arrows
41 - Tuned the bow and arrows even further
42 - Snowmen now drop a carrot, coal, stick, or snowball
43 - Added in armor
44 - Tuned a lot of things
45 - Made armor work
46 - Added in Krock's awesome Colored Names mod for csm chat
47 - Added sheep
48 - Fixed global mob handling
49 - Added in better fire
50 - Overhauled weather effects
51 - Added in clientside modchannel lockout to check if server sending message
52 - Added in capes
53 - Overhauled client mod version checking
54 - Overhauled mob pathfinding AI
55 - Overhauled fire
56 - Fixed Crafter Client from crashing if joining a non-crafter server
57 - Heavily optimized network usage with player mechanics to client mod
58 ---
59
60
61 # IDEAS:
62
63 ## jetpack:
64 - equipped like armor
65 - uses XP
66
67
68 ## REDSTONE:
69 - breaker (mines whatever is in front of it)
70 - dispenser (shoots out first item in inventory, or shoots item into pipe)
71 - piston in general (if node is falling and piston is pointing up then FLING IT, if detects falling node entity FLING IT)
72
73
74 ---
75
76
77
78 ## BUILDTEST:
79 - quarry
80 - filter
81 - siv
82 - mining lazer
83 - trains
84
85
86
87 ---
88
89
90 ## MOBS:
91
92 > #1 idea: weakness items, items that damage the mob more than diamond swords
93
94 ### snowman
95 - you can put a pumpkin on it's head to make it survive when it's not snowing out
96 - drops snowballs, coal, or carrot
97
98 ### sheep
99 - sheep can be punched to drop wool without damage
100 - you can dye a sheep with colored dye and it will change color, then will drop the color you dyed it
101
102
103 ### pig
104 - disable pig aggression
105 - make porkchop look nicer
106
107
108 ### ghosts
109 - make the default player model whited out
110 - ghosts can pass through any nodes
111 - ghosts fly around
112 - will follow you groaning about "diamonds", "need food", and "join us"
113 - they will fling you up in the air or punch you
114 - ghosts can drag you down into nodes and suffocate you
115 - spawn with cave sounds
116 - drop soul
117
118
119 ### node monster
120 - gets built out of nodes in the area
121 - will probabaly destroy you
122 - drops all nodes that it's made of when killed
123
124
125
126 ---
127
128
129 ## Game Mechanics:
130 - brewing
131 - enchanting/upgrading
132 - magic (wands, spells, etc)
133 - better combat ( sweep hit enemies, falling while hitting deals more damage )
134 - Enchanting food - gives buffs
135 - LATE effects https://forum.minetest.net/viewtopic.php?t=20724
136
137
138 ---
139
140
141 ## New Themes
142
143 ### mechanics (mechanical tools and machines)
144 - compressor (compresses nodes down)
145 - auto miner (digs whatever is in front of it)
146 - decompressor (opposite of compressor
147
148
149 ### automation 
150 - pipes
151 - pumps
152 - fluid  transfer
153 - fluid storage
154 - pipes should be able to move objects quickly
155
156
157 ### HALLOWEEN!
158 - Jack O'Lanterns
159 - corn and corn stalks
160 - decorations
161 - cobwebs
162 - costumes (somehow?)
163 - candy
164 - make grass and leaves orange during the month of October
165 - (Use a simple date check and override nodes)
166 - Gravestones
167 - Graveyards
168 - Candles
169 - candy apples
170 - Soul cake, make with cake and soul
171
172
173 ### Farming
174 - add fertilizer (pig drops bone randomly) 
175 - fertilizer is made out of bone - 
176 - fertilizer can make tall grass grow on regular grass
177 - bread - 3 bread in a row
178 - make sandwich with bread and cooked porkchop
179 - fertilizer used on saplings randomly make tree grow (make sapling growth a function)
180
181
182 ### Fishing
183 - enchanted fish
184 - player casts out a better lure if on a boat
185
186
187 ---
188
189
190 ## New Items
191
192 > These don't seem to fit into any theme so list them all here
193
194 - rope and tnt arrows
195 - vehicles (car, powered minecarts, trains)
196 - hitscan flintlocks
197
198
199 ---
200
201
202 ## Ideas
203
204 > These ideas are all over the place but are good for future updates
205
206 - make pistons able to push and pull any node that does not use meta or inv
207 - make pistons able to push and pull deactivated pistons
208 - upgrade minecart physics even more 
209 - make torches abm that checks if player in area
210 - make furnace abm that checks if player in area
211 - make tnt hurt player
212 - rewrite minecart
213 - fix tool rightclick torch placement to replace buildable to nodes
214 - if placed last node put another stack into hand
215 - have falling node hurt player?
216 - add a function to set a velocity goal to entities and then implement it with all entities
217 - ^make a value if below then stop?
218 - colored chat messages
219 - check if everyone is in bed before going to next night
220 - also lock player in bed until they get out or daytime
221 - create a function to check if a node or group is below
222 - ^ set meta for player so that all mods can use it without calculating it
223 - ^ over and over again (saves cpu cycles)
224 - cars buildable in crafting table
225 - require gas pumps refine oil
226 - drive next to gas pump and car will fill with gas
227 - maybe have pump be rightclickable and then manually fill with gass using nozel
228 - minecart car train? - off rail use
229 - automatic step height for off rail use
230 - make cars follow each other
231 - oil which spawns underground in pools
232 - powered minecart car (engine car)
233 - chest minecart car
234 - player controls engine car
235 - make entities push against players
236
237
238 ---
239
240
241 ## Possible Applications
242
243 > causes object to magnetize towards player or other objects and stop after an inner radius
244 > use for better item magnet?
245 ```
246 if object:is_player() and object:get_player_name() ~= self.rider then
247       local player_pos = object:getpos()
248       pos.y = 0
249       player_pos.y = 0
250       
251       local currentvel = self.object:getvelocity()
252       local vel = vector.subtract(pos, player_pos)
253       vel = vector.normalize(vel)
254       local distance = vector.distance(pos,player_pos)
255       distance = (1-distance)*10
256       vel = vector.multiply(vel,distance)
257       local acceleration = vector.new(vel.x-currentvel.x,0,vel.z-currentvel.z)
258       
259       
260       if self.axis == "x"      then
261             self.object:add_velocity(vector.new(acceleration.x,0,0))
262       elseif self.axis == "z" then
263             self.object:add_velocity(vector.new(0,0,acceleration.z))
264       else
265             self.object:add_velocity(acceleration)
266       end
267       
268       - acceleration = vector.multiply(acceleration, -1)
269       - object:add_player_velocity(acceleration)
270 end
271 ```